package com.usian.controller;

import com.usian.pojo.TbItem;
import com.usian.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("service")
public class ItemController {
    @Autowired
    private ItemService itemServiceImpl;

    /**查询商品信息
     * 根据商品id
     * @param itemId
     * @return
     */
    @RequestMapping("item/selectItemInfo")
    public TbItem selectItemInfo(Long itemId){
        return this.itemServiceImpl.selectItemInfo(itemId);
    }

}